import { createApp, createVNode } from 'vue'
import './style.css'
import App from './App.vue'
import { initRouter } from './router'
import { initStore } from './store'
import 'element-plus/es/components/message/style/css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App);
// 路由初始化
initRouter(app);

// 初始化状态管理库
initStore(app);


// 全局注册icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app')
